#include "setting.h"
#include "ui_setting.h"

Setting::Setting(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Setting)
{
    ui->setupUi(this);

//    QPixmap pixmap("://img/gear.png");
//    ui->label_gear->setPixmap(pixmap);
//    ui->label_gear->show();
}

Setting::~Setting()
{
    delete ui;
}

void Setting::on_changeColor_btn_clicked()
{
    QColor color = QColorDialog::getColor(Qt::white, nullptr, "请选择主题颜色");
    if (color.isValid()) {
        emit colorChanged(color);
    }
}

